package com.lengxf.pay.web.controller;

import com.lengxf.pay.web.common.R;
import com.lengxf.pay.web.service.BizPayService;
import jakarta.servlet.http.HttpServletRequest;
import lombok.AllArgsConstructor;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@AllArgsConstructor
@RequestMapping("api/notify")
public class PackBackController {

    private final BizPayService bizPayService;

    @RequestMapping("{tenantryId}/packBack")
    public R<Void> packBack(HttpServletRequest request, @PathVariable("tenantryId") String tenantryId) {
        bizPayService.payBack(request, tenantryId);
        return R.success();
    }


}
